// close
function closeDiv(){
  var oObj = document.getElementById("divRateRecord");
  oObj.innerHTML = "";
  oObj.className= "noneRateRecord";
}
//  show the record page
function showRateRecordPage(gametype, paperopen){
  var oObj = document.getElementById("divRateRecord");
  var sUrl = "op.php?op=subsidary&fp=rateRecord_3d&gametype=" + gametype + "&paperopen=" + paperopen; 
  oObj.innerHTML = "<div class='td0 bgClc_" + gametype + "' align=right><input type='button' value='&nbsp;X&nbsp;' onclick='javascript:closeDiv();' class='c4'></div><iframe src='" + sUrl + "' width='100%' height='100%'></iframe><br />"; 
  oObj.className = "showRateRecord";
}

//  show the record page
function showRateRecordPageBase(gametype, pagename){
  var oObj = document.getElementById("divRateRecord");
  var sUrl = "op.php?op=subsidary&fp=rateRecord_3d&gametype=" + gametype + "&pagename=" + pagename;
  oObj.innerHTML = "<div class='td0 bgClc_" + gametype + "' align=right><input type='button' value='&nbsp;X&nbsp;' onclick='javascript:closeDiv();' class='c4'></div><iframe src='" + sUrl + "' width='100%' height='100%'></iframe><br />"; 
  oObj.className = "showRateRecord";
}

function showOnlinebetAll(gametype, lotto_id_3d){
  var oObj = document.getElementById("divOnlinebetAll");
  var sUrl = "op.php?op=agent&fp=onlinebet_3d_all&gametype=" + gametype + "&lotto_id=" + lotto_id_3d; 
  oObj.innerHTML = "<div class='td0 bgClc_" + gametype + "' align=right><input type='button' value='&nbsp;X&nbsp;' onclick='javascript:close_OnlinebetAll();' class='c4'></div><iframe src='" + sUrl + "' width='100%' height='100%'></iframe><br />"; 
  oObj.className = "showRateRecord";
}

function close_OnlinebetAll(){
  var oObj = document.getElementById("divOnlinebetAll");
  oObj.innerHTML = "";
  oObj.className= "noneRateRecord";
}